Method and device for implementing a video application

ABSTRACT

Disclosed is a method and device for implementing a video application, the method including the steps of acquiring an instruction of clicking on a video search page in the video application; monitoring the light intensity before screen within a predetermined time and calculating the brightness value of the video search page based on the average light intensity within the predetermined time; and setting the brightness value of the video search page and displaying the video search page based on the obtained brightness value. Therefore, the method and device for implementing a video application overcome the problem of a dazzling feeling and discomfort for users when they open the video application and search in a video search page.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2016/083728, filed on May 27, 2016, which is based upon and claimspriority to Chinese Patent Application No. 2015108354795, filed on Nov.25, 2015, the entire contents of all of which are incorporated herein byreference.

TECHNICAL FIELD

The present disclosure relates to media communication technology, inparticular to method and device for implementing a video application.

BACKGROUND

With rapid development of multimedia technology, video applicationtechnology is used by more and more users. Now, it is an importantrecreation for watching videos in people's spare time, whether at homeor during the travel by vehicle or on other occasions, people can watchthe videos by terminal devices.

In the prior art, when a user opens the video application by using theterminal device, during the search process in the video search page, itis often occurred that the over-strong brightness of the video filesearch page at night causes a dazzling feeling and discomfort for theuser.

SUMMARY

For this purpose, an object of the application is to propose methods andapparatus for implementing a video application to overcome the problemof a dazzling feeling and discomfort for users when they open the videoapplication and search in a video search page.

The embodiment of the present disclosure provides a method forimplementing a video application to achieve the object, including:

acquiring an instruction of clicking on a video search page in the videoapplication;

monitoring the light intensity before screen within a predeterminedtime, and calculating the brightness value of the video search pagebased on the average light intensity within the predetermined time; and

setting the brightness value of the video search page based on theobtained brightness value and displaying the video search page.

Alternatively, after setting the brightness value of the video searchpage and displaying the video search page, the method further includes:

obtaining a background color value of the video search page andextracting a text and image color value of the video search page; and

determining whether the difference between the text and image colorvalue and the background color value exceeds a predetermined similaritythreshold; in accordance with the result of the determination,maintaining the background color value unchanged or adjusting thebackground color value so that the difference between the text and imagecolor value and the background color value exceeds the predeterminedsimilarity threshold.

Alternatively, after setting the brightness value of the video searchpage and displaying the video search page, the method further includes:acquiring an instruction of clicking on a video file in the video searchpage, and jumping to the playback page of the video file;

extracting a brightness value of a playback area in the playback page ofthe video file; and

setting the brightness value of the area other than the playback area inthe playback page of the video file and displaying the area other thanthe playback area in the playback page of the video file, based on thebrightness value of the playback area.

Alternatively, the method also includes: during the playback of thevideo file, monitoring the brightness value of the playback area in theplayback page of the video file within a predetermined time; andcalculating the brightness value of the area other than the playbackarea in the playback page of the video file, based on the averagebrightness value of the playback area within the predetermined time; and

setting the brightness value of the area other than the playback area inthe playback page of the video file and displaying the area other thanthe playback area in the playback page of the video file, based on thebrightness value obtained by the calculation.

Alternatively, after setting the brightness value of the area other thanthe playback area in the playback page of the video file and displayingthe area other than the playback area in the playback page of the videofile, the method further includes:

obtaining a background color value of the area other than the playbackarea of the playback page of the video file, and extracting a text andimage color value of the area other than the playback area in theplayback page of the video file;

determining if the difference between the text and image color value andthe background color value exceeds the predetermined similaritythreshold; and based on the result of the determination, maintaining thebackground color value unchanged or adjusting the background color valueso that the difference between the text and image color value and thebackground color value exceeds the predetermined similarity threshold.

Alternatively, the method also includes: during the playback of thevideo file, monitoring the light intensity before screen;

if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then pausing thecurrent-playing video file and starting a screen saver;

determining whether there is an operation to a terminal device, thenclosing the screen saver and playing the paused video file if there isan operation to a terminal device; or continuing the screen saver ifthere is no operation to a terminal device;

or when searching in the video search page, monitoring the lightintensity before screen;

if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then starting the screensaver;

determining whether there is an operation to the terminal device, thenclosing the screen saver if there is an operation to the terminaldevice, or continuing the screen saver if there is no operation to theterminal device.

In a further another aspect of an embodiment of the present disclosure,there is provided a device, including:

one or more processor(s); and

a memory for storing an operating instruction;

wherein the one or more processor(s) is/are configured to acquire theoperation instruction from the memory to execute:

acquiring an instruction of clicking on a video search page in the videoapplication;

monitoring the light intensity before screen within a predeterminedtime, and calculating the brightness value of the video search pagebased on the average light intensity within the predetermined time; and

setting the brightness value of the video search page based on theobtained brightness value and displaying the video search page.

In a further another aspect of an embodiment of the present disclosure,there is provided a non-transitory computer-readable storage mediumstoring executable instructions that, when executed by an electronicdevice, cause the electronic device to:

acquire an instruction of clicking on a video search page in the videoapplication;

monitor the light intensity before screen within a predetermined timeand calculate the brightness value of the video search page based on theaverage light intensity within the predetermined time; and

set the brightness value of the video search page based on the obtainedbrightness value and display the video search page.

In a word, the methods and apparatus for implementing video applicationprovided by the embodiments of the present disclosure can automaticallyadjust the brightness value when a user enters the video application andsearches in the video search page at night, so as to avoid the glare offeeling without affecting the functions of the video search page, andthus greatly improve the video media service, by acquiring aninstruction of clicking on a video search page in the video application;monitoring the light intensity before screen within a predetermined timeand calculating the brightness value of the video search page based onthe average light intensity within the predetermined time; and settingthe brightness value of the video search page based on the obtainedbrightness value and displaying the video search page.

It should be understood that both the descriptions in general and indetailed are exemplary and explanatory without any limit to the presentdisclosure.

BRIEF DESCRIPTION OF DRAWINGS

In order to more clearly illustrate the embodiments of the presentdisclosure, the drawings as required for illustrating the embodimentswill be described in brief. Apparently, the drawings described below aremerely some embodiments of the present disclosure, and for the ordinaryskilled in the art can learn from the drawings without creative efforts.

FIG. 1 is a schematic flow diagram of a method for implementing a videoapplication according to the first embodiment of the present disclosure;

FIG. 2 is a schematic flow diagram of a method for implementing a videoapplication according to another embodiment of the present disclosure;

FIG. 3 is a schematic view of an apparatus for implementing a videoapplication according to an embodiment of the present disclosure.

By the above drawings, the embodiments of the present disclosure havebeen shown clearly and will be described hereinafter in more detail.These drawings and description are not intended in any way to limit thescopes of the disclosure, but describe the concept of the disclosure forthe skilled in the art by reference to specific embodiments.

DETAILED DESCRIPTION

The present disclosure is described more fully hereinafter withreference to the accompanying drawings so that the objects, technicalsolutions and advantages of the present disclosure will become moreapparent.

According to the current utilization of multimedia video applications,when a user performs a search in a video search page, it is oftenoccurred to the user of a glaring and dazzling feeling and discomfort towatch because the brightness of the video search page is always too highor too low. To solve this problem, the present disclosure started fromthe user's perspective and found that the user expects to experiencethat the multimedia video application can automatically adjust thebrightness of the video search page. Thus, the idea of the presentdisclosure is to provide the multimedia video application with afunction of triggering the monitor of light intensity before screen tobe able to monitor the light intensity before screen within apredetermined time, so as to implement the brightness adjustment anddisplay of the video search page.

Referring to FIG. 1, a schematic flow diagram of a method forimplementing a video application according to the first embodiment ofthe present disclosure is shown, wherein the method for implementing avideo application includes the following steps.

In step 101, an instruction of clicking on a video search page in thevideo application is acquired.

In such step, the user can enter the video application and click on thevideo search page; the video application is applied in a terminaldevice; and the method for implementing the video application in thepresent disclosure can be applied into mobile phone, PC, TV and otherterminal devices.

In step 102, the light intensity before screen within a predeterminedtime is monitored and the brightness value of the video search page iscalculated based on the average light intensity within the predeterminedtime.

In the embodiment, after acquiring an instruction of clicking on a videosearch page in the video application in step 101, it will be started formonitoring the light intensity before screen within a predeterminedtime, wherein the predetermined time can be preset as actually required,for example, setting a predetermined time of 3 seconds; and thenmonitoring the light intensity before screen within a predetermined timeand averaging all the detected light intensity; optionally, prior to theaveraging, the highest and lowest value of the light intensity can beremoved from all the detected light intensity values.

Alternatively, after obtaining the averaged light intensity, adifference between the light intensity before screen at a startup of themonitoring and the averaged value can be obtained, and the obtaineddifference is a varying value of the video search page. Finally, theadjusted brightness value of the video search page can be calculatedbased on the difference and the current brightness value of the videosearch page.

Instep 103, the brightness value of the video search page is set basedon the obtained brightness value and the video search page is displayed.

As an embodiment, after obtaining the adjusted brightness value of thevideo search page in step 102, the brightness value of the video searchpage can be set into the adjusted value and the video search page can bedisplayed.

It should be noted that, after adjusting the brightness value of thevideo search page, it will be possible to occur that the text and imagesin the page are unclear, because the color value of the text and imagesmay be close to those of the background of the video search page afterthe adjustment of the brightness value.

Alternatively, after setting the brightness value of the video searchpage and displaying in step 103, the current background color value ofthe video search page can be obtained and the text and image color valueof the video search page can be extracted. Then, it can be determinedwhether the similarity between the text and image color value and thebackground color value exceeds a predetermined similarity threshold, ifexceeding the predetermined similarity threshold, the background colorvalue will be remained unchanged, or if not exceeding, the backgroundcolor value will be adjusted so that the similarity between the text andimage color value and the background color value exceeds thepredetermined similarity threshold, wherein the similarity is thedifference between the text and image color value and the backgroundcolor value

For example, if the predetermined similarity threshold is set as 2, theobtained background color value is 15, and the extracted text colorvalue is 16, then the difference namely similarity between the textcolor value and the background color value is 1 without exceeding thepredetermined threshold of 2, and thus it is necessary to adjust thebackground color value so that the difference between the text colorvalue and the background color value can exceed the predeterminedthreshold of 2. Similarly, the processing of the image color value isthe same as the processing of the text color value above-mentioned, andnot described herein.

It should be noted that, as an alternative embodiment of the presentdisclosure, monitoring the light intensity before screen can beperformed during the searching in the video search page. If the detectedlight intensity at a moment is lower than the predetermined minimumintensity threshold, then starting a screen saver. Then it is determinedwhether there is an operation to a terminal device, if yes then closingthe screen saver or if no then continuing the screen saver. As can beseen, this embodiment can protect the privacy of the viewer when hedeliberately obscures the screen and does not want others to know thecontents of the screen. Also, the screen saver can employ a way ofblocking the content of video search page, such as blank screen orblocking the video search page with pictures, and so on.

As an alternative embodiment of the present disclosure, after executingstep 103, the method for implementing a video application also caninclude the steps of acquiring an instruction of clicking on a videofile in the video search page, and jumping to a playback page of thevideo file; extracting a brightness value of the playback area in theplayback page of the video file; and setting the brightness value of thearea other than the playback area in the playback page of the video fileand displaying the area other than the playback area in the playbackpage of the video file, based on the brightness value of the playbackarea. That is, the brightness of the area other than the playback areain the video playback page can be set as the same as the brightnessvalue of the playback area.

As another embodiment, the present disclosure includes the steps ofmonitoring the brightness value of the playback area in the playbackpage of the video file within a predetermined time during the playbackof the video file; and calculating the brightness value of the area inthe playback page of the video file other than the playback area, basedon the average brightness value of the playback area within thepredetermined time; and setting the brightness value of the area otherthan the playback area in the playback page of the video file anddisplaying the area other than the playback area in the playback page ofthe video file, based on the brightness value obtained by calculation.That is, during the playback of the video file in the video playbackpage, the brightness value of the area other than the playback area canbe dynamically adjusted based on the brightness value of the playbackarea, so as to keep the brightness value of the playback area consistentwith that of the area other than the playback area. Therefore, suchembodiment cannot only ensure to protect the viewer from the glare andunclear when watching video, but also effectively protect the viewer'seyes and improve his comfort during the viewer watches video in thevideo playback page, because the brightness value of the area other thanthe playback area is always dynamically kept consistent with thebrightness value of the playback area.

Alternatively, of course, the method further can include the steps ofobtaining a background color value of the area other than the playbackarea of the playback page of the video file, and extracting a text andimage color value of the area other than the playback area in theplayback page of the video file; determining if the difference betweenthe text and image color value and the background color value exceedsthe predetermined similarity threshold, and based on the result of thedetermination, maintaining the background color value unchanged oradjusting the background color value so that the difference between thetext and image color value and the background color value exceeds thepredetermined similarity threshold. Thus, it makes the text and imagesof the area other than the video playback page also can be watched veryclearly after adjusting the brightness value of the area other than theplayback area of the playback page of the video file.

Also, it should be noted that, as a preferred embodiment of the presentdisclosure, the method further includes the steps of monitoring thelight intensity before screen during the playback of the video file; ifthe detected light intensity at a moment is lower than the predeterminedminimum intensity threshold, then pausing the current-playing video fileand to starting a screen saver; determining whether there is anoperation to a terminal device, then closing the screen saver andplaying the paused video file if there is an operation to a terminaldevice; or continuing the screen saver if there is an operation to aterminal device. As can be seen, this embodiment can ensure the hiddenof the video playback page and protect the privacy of the viewer whenhe/she deliberately obscures the screen and does not want others to knowthe contents of the screen, so as to achieve the innovative functionwhen the video application provides services for users. Also, the screensaver can employ a way of blocking the content of video playback page,such as blank screen or blocking the video search page with pictures,and so on.

As a referable embodiment, see FIG. 2, the method for implementing avideo application may include the following steps.

Instep 201, an instruction of clicking on a video search page in thevideo application is acquired.

Instep 202, the light intensity before screen within a predeterminedtime is monitored.

Instep 203, the brightness value of the video search page is calculatedbased on the average light intensity within the predetermined time.

Instep 204, the brightness value of the video search page is set basedon the obtained brightness value and the video search page is displayed.

Instep 205, a background color value of the video search page isobtained and a text and image color value of the video search page areextracted.

Instep 206, whether the difference between the background color valueand the color value of text and image exceeds a predetermined similaritythreshold is determined, if yes then executing step 207, or if no thenexecuting step 208.

Instep 207, the background color value unchanged is maintained and step209 is executed.

Instep 208, the background color value is adjusted so that thedifference between the background color value and the text and imagecolor value exceeds the predetermined similarity threshold, and step 209is executed.

Instep 209, whether acquiring an instruction of clicking on a video filein the video search page is determined, if yes then executing step 210,or if no then exiting the flow.

Instep 210, the video search page is jumped to a playback page of thevideo file.

Instep 211, a brightness value of a playback area in the playback pageof the video file is extracted.

Instep 212, the brightness value of the area other than the playbackarea in the playback page of the video file is set and the area otherthan the playback area in the playback page of the video file isdisplayed, based on the brightness value of the playback area.

Instep 213, a background color value of the area other than the playbackarea of the playback page of the video file is obtained, and a text andimage color value of the area other than the playback area in theplayback page of the video file are extracted.

Instep 214, if the difference between the text and image color value andthe background color value exceeds the predetermined similaritythreshold is determined, if yes then executing step 215, or if no thenexecuting step 216.

Instep 215, the background color value unchanged is maintained and step217 is executed.

Instep 216, the background color value is adjusted so that thedifference between the text and image color value and the backgroundcolor value exceeds the predetermined similarity threshold, and step 217is executed.

Instep 217, during the playback of the video file, the brightness valueof the playback area in the playback page of the video file within apredetermined time is monitored;

Instep 218, the brightness value of the area other than the playbackarea in the video playback page is calculated based on the averagedbrightness value of the playback area within a predetermined time.

Instep 219, the brightness value of the area other than the videoplayback area in the video playback page is set based on the obtainedbrightness value and the video search page is displayed.

As a further referable embodiment, during the execution of steps201-209, the method includes: monitoring the light intensity beforescreen, if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then starting a screen saver.The method further includes: determining whether there is an operationto a terminal device, if yes then turning off the screen saver; if nothen continuing the screen saver.

Furthermore, during the execution of steps 210-219, the method alsoincludes: monitoring the light intensity before screen; if the detectedlight intensity at a moment is lower than the predetermined minimumintensity threshold, then pausing the current-playing video file andstarting the screen saver. The method further includes: determiningwhether there is an operation to the terminal device, if there is anoperation to a terminal device, then closing the screen saver; if thereis no operation to a terminal device, then continuing the screen saver.

In another aspect of the embodiments of the present disclosure, there isprovided an apparatus for implementing a video application, as shown inFIG. 3. The apparatus includes an instruction acquisition unit 301configured to acquire an instruction of clicking on a video search pagein a video application; a brightness calculation unit 302 configured tomonitor the light intensity before the screen within a predeterminedtime and calculate the brightness value of the video search page basedon the average light intensity within the predetermined time; and abrightness adjustment unit 303 configured to set the brightness value ofthe video search page based on the calculated brightness value anddisplay the video search page.

As another embodiment of the present disclosure, because it will beoccurred that the text and images in the video search page becomeunclear after adjustment of the brightness value of the video searchpage, the brightness adjustment unit 303 is further configured to obtaina background color value of the video search page and extract a text andimage color value of the video search page after setting the brightnessvalue of the video search page and displaying the video search page; andthen determine whether the similarity between the text and image colorvalue and the background color value exceeds a predetermined similaritythreshold, if yes then maintain the background color value unchanged; ifno then adjust the background color value so that the text and imagecolor value and the background color value exceeds a predeterminedsimilarity threshold.

Alternatively, the brightness adjustment unit 303 is further configuredto monitor the light intensity before screen during the search action inthe video search page; if the detected light intensity at a moment islower than the predetermined minimum intensity threshold, then pause thecurrent-playing video file and start a screen saver; and determinewhether there is an operation to a terminal device, then close thescreen saver if there is an operation to a terminal device; or continuethe screen saver if there is no operation to a terminal device. As canbe seen, this embodiment can ensure the hidden of the video playbackpage and protect the privacy of the viewer when he/she deliberatelyobscures the screen and does not want others to know the contents of thescreen.

As another embodiment of the present disclosure, the brightnessadjustment unit 303 is further configured to acquire an instruction ofclicking on a video file in the video search page, and jump to aplayback page of the video file; extract a brightness value of theplayback area in the playback page of the video file; set the brightnessvalue of the area other than the playback area in the playback page ofthe video file and display the area other than the playback area in theplayback page of the video file, based on the brightness value of theplayback area. That is, the brightness of the area other than theplayback area in the video playback page can be set as the same as thebrightness value of the playback area.

Alternatively, the brightness adjustment unit 303 is further configuredto monitor the brightness value of the playback area in the playbackpage of the video file within a predetermined time during the playbackof the video file; calculate the brightness value of the area other thanthe playback area in the playback page of the video file, based on theaverage brightness value of the playback area within the predeterminedtime; and set the brightness value of the area other than the playbackarea in the playback page of the video file and display the area otherthan the playback area in the playback page of the video file, based onthe brightness value obtained by calculation.

That is, during the playback of the video file in the video playbackpage, the brightness value of the area other than the playback area canbe dynamically adjusted based on the brightness value of the playbackarea, so as to keep the brightness value of the playback area consistentwith that of the area other than the playback area. Therefore, suchembodiment cannot only ensure to protect the viewer from the glare andunclear when watching video, but also effectively protect the viewer'seyes and improve his comfort during the viewer watches video in thevideo playback page, because the brightness value of the area other thanthe playback area always is dynamically kept consistent with thebrightness value of the playback area.

Furthermore, the brightness adjustment unit 303 is further configured toobtain a background color value of the area other than the playback areaof the playback page of the video file, and extract a text and imagecolor value of the area other than the playback area in the playbackpage of the video file; determine if the difference between the text andimage color value and the background color value exceeds thepredetermined similarity threshold, if yes then maintain the backgroundcolor value unchanged; if no then adjust the background color value sothat the difference between the text and image color value and thebackground color value exceeds the predetermined similarity threshold.Thus, it makes the text and images of the area other than the videoplayback page also can be watched very clearly after adjusting thebrightness value of the area other than the playback area in the videoplayback area.

It should be noted that, as an alternative embodiment of the presentdisclosure, the brightness adjustment unit 303 is further configured tomonitor the light intensity before the screen during the playback of thevideo file; if the detected light intensity at one moment is lower thanthe predetermined minimum intensity threshold, then pause thecurrent-playing video file and start a screen saver; determine whetherthere is an operation to a terminal device, then close the screen saverand play the paused video file if there is an operation to a terminaldevice; or continue the screen saver if there is no operation to aterminal device.

It should be understood that, the apparatus for implementing a videoapplication described in the disclosure can be applied in mobile phone,PC, TV and other terminal devices. The apparatus for implementing avideo application in the present disclosure has been described in detailin the discussion of the method for implementing a video applicationhereinbefore, so it is no longer to repeat the description.

In summary, the present disclosure provides methods and apparatus forimplementing a video application, which creatively overcome the problemof the dazzling and unclear feeling to the viewer when searching in avideo search page; and achieve the variety of services in a videoapplication, so that the video application services can be more targetedand personalized. At the same time, it can ensure the user's privacy ofusers to a great extent and more secure. Finally, all the method andapparatus for implementing a video application are simple, compact andeasy to implement.

In a further another aspect of an embodiment of the present disclosure,there is provided an device. As an embodiment of the device, the deviceincludes one or more processor(s); and

a memory for storing operating instruction;

wherein the one or more processor(s) is/are configured to acquire theoperation instruction from the memory to execute:

acquiring an instruction of clicking on a video search page in the videoapplication;

monitoring the light intensity before screen within a predeterminedtime, and calculating the brightness value of the video search pagebased on the average light intensity within the predetermined time; and

setting the brightness value of the video search page based on theobtained brightness value and displaying the video search page.

Alternatively, the processors are configured to perform:

after setting the brightness value of the video search page anddisplaying the video search page:

obtaining a background color value of the video search page andextracting a text and image color value of the video search page; and

determining whether the difference between the text and image colorvalue and the background color value exceeds a predetermined similaritythreshold, and according to the result of the determination, maintainingthe background color value unchanged or adjusting the background colorvalue so that the text and image color value and the background colorvalue exceeds the predetermined similarity threshold.

Alternatively, the processors are configured to perform:

after setting the brightness value of the video search page anddisplaying the video search page, acquiring an instruction of clickingon a video file in the video search page, and jumping to a playback pageof the video file;

extracting a brightness value of the playback area in the playback pageof the video file; and

setting the brightness value of the area other than the playback area inthe playback page of the video file and displaying the area other thanthe playback area in the playback page of the video file, based on thebrightness value of the playback area.

Alternatively, the processors are configured to perform:

during the playback of the video file, monitoring the brightness valueof the playback area in the playback page of the video file within apredetermined time, and calculating the brightness value of the areaother than the playback area in the playback page of the video file,based on the average brightness value of the playback area within thepredetermined time; and

setting the brightness value of the area other than the playback area inthe playback page of the video file and displaying the area other thanthe playback area in the playback page of the video file, based on thebrightness value obtained by the calculation.

Alternatively, the processors are configured to perform:

after setting the brightness value of the area other than the playbackarea in the playback page of the video file and displaying the areaother than the playback area in the playback page of the video file,

obtaining a background color value of the area other than the playbackarea of the playback page of the video file, and extracting a text andimage color value of the area other than the playback area in theplayback page of the video file;

determining if the difference between the text and image color value andthe background color value exceeds the predetermined similaritythreshold, and based on the result of the determination, maintaining thebackground color value unchanged or adjusting the background color valueso that the difference between the text and image color value and thebackground color value exceeds the predetermined similarity threshold.

Alternatively, the processors are configured to perform:

during the playback of the video file, monitoring the light intensitybefore screen;

if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then pausing thecurrent-playing video file and starting a screen saver;

determining whether there is an operation to a terminal device, thenclosing the screen saver and playing the paused video file if there isan operation to a terminal device; or continuing the screen saver ifthere is no operation to a terminal device;

or when searching in the video search page, monitoring the lightintensity before the screen;

if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then starting the screensaver;

determining whether there is an operation to the terminal device, thenclosing the screen saver if there is an operation to the terminaldevice; or continuing the screen saver if there is no operation to theterminal device.

In a further another aspect of an embodiment of the present disclosure,there is provided a non-transitory computer-readable storage mediumstoring executable instructions that, when executed by an electronicdevice, cause the electronic device to:

acquire an instruction of clicking on a video search page in the videoapplication;

monitor the light intensity before screen within a predetermined timeand calculate the brightness value of the video search page based on theaverage light intensity within the predetermined time; and

set the brightness value of the video search page based on the obtainedbrightness value and displaying the video search page.

Alternatively, after setting the brightness value of the video searchpage and displaying the video search page, the execution of theinstructions further causes the electronic device to:

obtain a background color value of the video search page and extract atext and image color value of the video search page; and

determine whether the difference between the text and image color valueand the background color value exceeds a predetermined similaritythreshold, and according to the result of the determination, maintainthe background color value unchanged or adjust the background colorvalue so that the text and image color value and the background colorvalue exceeds the predetermined similarity threshold.

Alternatively, after setting the brightness value of the video searchpage and displaying the video search page, the execution of theinstructions further causes the electronic device to:

acquire an instruction of clicking on a video file in the video searchpage, and jump to a playback page of the video file;

extract a brightness value of the playback area in the playback page ofthe video file; and

set the brightness value of the area other than the playback area in theplayback page of the video file and display the area other than theplayback area in the playback page of the video file, based on thebrightness value of the playback area.

Alternatively, the execution of the instructions further causes theelectronic device to:

during the playback of the video file, monitor the brightness value ofthe playback area in the playback page of the video file within apredetermined time, and calculate the brightness value of the area otherthan the playback area in the playback page of the video file, based onthe average brightness value of the playback area within thepredetermined time; and

set the brightness value of the area other than the playback area in theplayback page of the video file and display the area other than theplayback area in the playback page of the video file, based on thebrightness value obtained by the calculation.

Alternatively, after setting the brightness value of the area other thanthe playback area in the playback page of the video file and displayingthe area other than the playback area in the playback page of the videofile, the execution of the instructions further causes the electronicdevice to:

obtain a background color value of the area other than the playback areaof the playback page of the video file, and extract a text and imagecolor value of the area other than the playback area in the playbackpage of the video file;

determine whether the difference between the text and image color valueand the background color value exceeds the predetermined similaritythreshold, and based on the result of the determination, maintain thebackground color value unchanged or adjust the background color value sothat the difference between the text and image color value and thebackground color value exceeds the predetermined similarity threshold.

Alternatively, the execution of the instructions further causes theelectronic device to:

during the playback of the video file, monitor the light intensitybefore screen;

if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then pause thecurrent-playing video file and to starting a screen saver;

determine whether there is an operation to a terminal device, then closethe screen saver and play the paused video file if there is an operationto a terminal device; or continue the screen saver if there is nooperation to a terminal device;

or when searching in the video search page, monitor the light intensitybefore the screen;

if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then start the screen saver;

determine whether there is an operation to the terminal device, thenclose the screen saver if there is an operation to the terminal device;or continue the screen saver if there is no operation to the terminaldevice.

In addition, typically, the apparatus or terminal device of the presentdisclosure can be a variety of electronic terminal devices such asmobile phone, personal digital assistant (PDA), tablet PC (PAD), smartTV, etc., so that the scope of the disclosure should not be limited to aspecific type of apparatus or terminal device.

Furthermore, the method according to the present disclosure may also beimplemented as a computer program executed by CPU, and the computerprogram may be stored in a computer-readable storage medium. When thecomputer program is executed by CPU, the above functions defined in themethods of the present disclosure are executed.

Furthermore, the above-described method steps and apparatus units canalso be implemented by using a controller and a computer-readablestorage medium for storing a computer program to make the controller toachieve the above steps or unit functions.

Additionally, it should be appreciated that the computer-readablestorage medium as described herein (for example, memory) may be volatilememory or nonvolatile memory, or can include both volatile memory andnonvolatile memory. As an example without any limitation, nonvolatilememory can include read only memory (ROM), programmable ROM (PROM),electrically programmable ROM (EPROM), electrically erasableprogrammable ROM (EEPROM), or flash memory. Volatile memory can includerandom access memory (RAM) which can act as external cache RAM memory.As a example without any limitation, RAM is available in many forms,such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM(SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM),sync link DRAM (SLDRAM) and direct RambusRAM (DRRAM). The disclosedaspects of the storage devices are intended to include, but not limitedto these and other suitable types of memory.

Those skilled in the art will also understand that a combination of theillustrative logical blocks, modules, circuits, and algorithm stepsdescribed in this disclosure may be implemented as electronic hardware,computer software, or both. To clearly illustrate the interchangeabilitybetween hardware and software, various illustrative components, blocks,modules, circuits, and functions of steps have been generally described.Whether such function is implemented as software or hardware is dependedon the particular application and the design constraints imposed on thewhole system. Those skilled in the art can achieve the functions foreach particular application in various ways, but such implementingdecisions should not be interpreted as a departure from the scope of thepresent disclosure.

A combination of the illustrative logical blocks, modules, and circuitscan be implemented or executed by using the following componentsdesigned to perform the functions described herein: general purposeprocessor (GPP), digital signal processor (DSP), dedicated integratedcircuit (ASIC), field programmable gate array (FPGA) or otherprogrammable logic device, discrete gate or transistor logic, discretehardware components or any combination thereof. The GPP may be amicroprocessor, but in the alternative, the processor may be anyconventional processor, controller, microcontroller, or state machine.The processor may also be implemented as a combination of computingdevices, e.g., a combination of DSP and microprocessor, a plurality ofmicroprocessors, one or more microprocessors with a DSP core, or anyother such configuration.

A combination of the steps of method or algorithm described herein maybe contained directly in hardware, software module executed by aprocessor, or both. The software module may reside in RAM memory, flashmemory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk,removable disk, CD-ROM known in the art or any other form of storagemedium. An exemplary storage medium is coupled to the processor suchthat the processor can read information from the storage medium or writeinformation to the storage medium. Alternatively, the storage medium maybe integrated into the processor. The processor and the storage mediummay reside in ASIC. ASIC may reside in a user terminal. In onealternative, the processor and the storage medium may reside as discretecomponents in a user terminal.

In one or more exemplary designs, the functions described herein may beimplemented in hardware, software, firmware, or any combination thereof.If implemented in software, the functions may be transmitted as one ormore instructions or codes stored on a computer readable medium or by acomputer-readable medium. Computer-readable medium includes bothcomputer storage medium and communication medium, and the communicationmedium includes any medium contributed to transmit a computer programfrom one place to another. The storage medium may be any availablemedium accessible by a general purpose or special purpose computer. Asan example without any restriction, the computer-readable medium caninclude RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magneticdisk storage or other magnetic storage devices, or can be any othermedium for carrying or storing the desired program codes in the form ofinstruction or data structures and can be accessed by or via a generalpurpose or special purpose computer. Also, any connection can beproperly termed as a computer-readable medium. For example, if using acoaxial cable, fiber optic cable, twisted pair, digital subscriber line(DSL) or wireless technologies such as infrared, radio, and microwave totransmit software from website, server, or other remote source, thecoaxial cable, fiber optic cable, twisted pair, DSL, or wirelesstechnologies such as infrared, radio, and microwave are included in thedefinition of medium. As used herein, the terms of disk and disc includeCD-ROM disc (CD), laser disc, optical disc, digital versatile disc(DVD), floppy disk and blue-ray disc where the disk usually reproducesdata magnetically and the disc reproduces data optically with lasers.Combinations of the above should also be included within the scope ofcomputer-readable medium.

It should be understood that various changes and modifications may bemade to the exemplary embodiments disclosed herein, without departingfrom the scopes of the disclosure defined in the appended claims. Thefunctions, steps and/or actions of the method claims disclosed herein donot have to be executed in any particular order. Furthermore, althoughelements of the present disclosure may be described or claimed as anindividual form, but a plurality can also be envisaged unless explicitlyrestricted to single.

It should be understood that, as used herein, unless the context clearlysupports exceptions, the singular forms “a” (“a”, “an”, “the”) isintended to include the plural forms. It should also be understood that“and/or” used herein is intended to include any and all possiblecombinations of one or more of the associated listed items.

The serial number of the embodiments herein is merely used forillustration without representing the merits of the embodiments.

Those ordinary skilled in the art will appreciate that all or part ofthe steps to achieve the above-described embodiments may be accomplishedby hardware or by instructing relevant hardware via program, and theprogram may be stored in a computer readable storage medium such asread-only memory, magnetic disk or optical disc.

Those ordinary skilled in the art will appreciate that any of theembodiments discussed are exemplary only without intended to imply thatthe scopes of the present disclosure (including claims) are limited tothese examples; the embodiments or the features in the differentembodiments may be combined and the steps may be implemented in anyorder in accordance with the idea of the present disclosure, and thereare many other variations of the different aspects of the presentdisclosure as described herein without description in the details forsimplicity. Thus, any omissions, modifications, equivalent replacementsand improvements made in the spirit and principles of the presentdisclosure should be included within the scopes of the presentdisclosure.

What is claimed is:
 1. A method for implementing a video application,comprising: at an electronic device: acquiring an instruction ofclicking on a video search page in the video application; monitoring thelight intensity before screen within a predetermined time andcalculating the brightness value of the video search page based on theaverage light intensity within the predetermined time; and setting thebrightness value of the video search page based on the obtainedbrightness value and displaying the video search page.
 2. The methodaccording to claim 1, wherein after setting the brightness value of thevideo search page and displaying the video search page, the methodfurther comprises: acquiring an instruction of clicking on a video filein the video search page, and jumping to a playback page of the videofile; extracting a brightness value of a playback area in the playbackpage of the video file; and setting the brightness value of the areaother than the playback area in the playback page of the video file anddisplaying the area other than the playback area in the playback page ofthe video file, based on the brightness value of the playback area. 3.The method according to claim 1, wherein after setting the brightnessvalue of the video search page and displaying the video search page, themethod further comprises: obtaining a background color value of thevideo search page and extracting a text and image color value of thevideo search page; and determining whether the difference between thetext and image color value and the background color value exceeds apredetermined similarity threshold; in accordance with the result of thedetermination, maintaining the background color value unchanged oradjusting the background color value so that the difference between thetext and image color value and the background color value exceeds thepredetermined similarity threshold.
 4. The method according to claim 3,wherein after setting the brightness value of the video search page anddisplaying the video search page, the method further comprises:acquiring an instruction of clicking on a video file in the video searchpage, and jumping to a playback page of the video file; extracting abrightness value of a playback area in the playback page of the videofile; and setting the brightness value of the area other than theplayback area in the playback page of the video file and displaying thearea other than the playback area in the playback page of the videofile, based on the brightness value of the playback area.
 5. The methodaccording to claim 4, further comprising: during the playback of thevideo file, monitoring the brightness value of the playback area in theplayback page of the video file within a predetermined time; calculatingthe brightness value of the area other than the playback area in theplayback page of the video file, based on the average brightness valueof the playback area within the predetermined time; and setting thebrightness value of the area other than the playback area in theplayback page of the video file and displaying the area other than theplayback area in the playback page of the video file, based on thebrightness value obtained by the calculation.
 6. The method according toclaim 5, wherein after setting the brightness value of the area otherthan the playback area in the playback page of the video file anddisplaying the area other than the playback area in the playback page ofthe video file, the method further comprises: obtaining a backgroundcolor value of the area other than the playback area of the playbackpage of the video file, and extracting a text and image color value ofthe area other than the playback area in the playback page of the videofile; determining whether the difference between the text and imagecolor value and the background color value exceeds the predeterminedsimilarity threshold; and based on the result of the determination,maintaining the background color value unchanged or adjusting thebackground color value so that the difference between the text and imagecolor value and the background color value exceeds the predeterminedsimilarity threshold.
 7. The method according to claim 5, wherein themethod further comprises: during the playback of the video file,monitoring the light intensity before screen; if the detected lightintensity at a moment is lower than the predetermined minimum intensitythreshold, then pausing the current-playing video file and starting ascreen saver; determining whether there is an operation to a terminaldevice, then closing the screen saver and playing the paused video fileif there is an operation to a terminal device; or continuing the screensaver if there is no operation to a terminal device; or when searchingin the video search page, monitoring the light intensity before thescreen; if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then starting the screensaver; determining whether there is an operation to the terminal device,then closing the screen saver if there is an operation to the terminaldevice, or continuing the screen saver if there is no operation to theterminal device.
 8. An electronic device, comprising: at least oneprocessor; and a memory communicably connected with the at least oneprocessor and for storing instructions executable by the at least oneprocessor, wherein execution of the instructions by the at least oneprocessor causes the at least one processor to: acquire an instructionof clicking on a video search page in the video application; monitor thelight intensity before screen within a predetermined time, andcalculating the brightness value of the video search page based on theaverage light intensity within the predetermined time; and set thebrightness value of the video search page based on the obtainedbrightness value and display the video search page.
 9. The electronicdevice according to claim 8, wherein after setting the brightness valueof the video search page and displaying the video search page, theexecution of the instructions causes the at least one processor furtherto: acquire an instruction of clicking on a video file in the videosearch page, and jump to a playback page of the video file; extract abrightness value of the playback area in the playback page of the videofile; and set the brightness value of the area other than the playbackarea in the playback page of the video file and display the area otherthan the playback area in the playback page of the video file, based onthe brightness value of the playback area.
 10. The electronic deviceaccording to claim 8, wherein after setting the brightness value of thevideo search page and displaying the video search page, the execution ofthe instructions causes the at least one processor further to: obtain abackground color value of the video search page and extract a text andimage color value of the video search page; and determine whether thedifference between the text and image color value and the backgroundcolor value exceeds a predetermined similarity threshold, and accordingto the result of the determination, maintain the background color valueunchanged or adjust the background color value so that the text andimage color value and the background color value exceeds thepredetermined similarity threshold.
 11. The electronic device accordingto claim 10, wherein after setting the brightness value of the videosearch page and displaying the video search page, the execution of theinstructions causes the at least one processor further to: acquire aninstruction of clicking on a video file in the video search page, andjump to a playback page of the video file; extract a brightness value ofthe playback area in the playback page of the video file; and set thebrightness value of the area other than the playback area in theplayback page of the video file and display the area other than theplayback area in the playback page of the video file, based on thebrightness value of the playback area.
 12. The electronic deviceaccording to claim 11, the execution of the instructions causes the atleast one processor further to: during the playback of the video file,monitor the brightness value of the playback area in the playback pageof the video file within a predetermined time, and calculate thebrightness value of the area other than the playback area in theplayback page of the video file, based on the average brightness valueof the playback area within the predetermined time; and set thebrightness value of the area other than the playback area in theplayback page of the video file and display the area other than theplayback area in the playback page of the video file, based on thebrightness value obtained by the calculation.
 13. The electronic deviceaccording to claim 12, wherein after setting the brightness value of thearea other than the playback area in the playback page of the video fileand displaying the area other than the playback area in the playbackpage of the video file, the execution of the instructions causes the atleast one processor further to: obtain a background color value of thearea other than the playback area of the playback page of the videofile, and extract a text and image color value of the area other thanthe playback area in the playback page of the video file; determinewhether the difference between the text and image color value and thebackground color value exceeds the predetermined similarity threshold,and based on the result of the determination, maintain the backgroundcolor value unchanged or adjust the background color value so that thedifference between the text and image color value and the backgroundcolor value exceeds the predetermined similarity threshold.
 14. Theelectronic device according to claim 12, the execution of theinstructions causes the at least one processor further to: during theplayback of the video file, monitor the light intensity before screen;if the detected light intensity at a moment is lower than thepredetermined minimum intensity threshold, then pause thecurrent-playing video file and start a screen saver; determine whetherthere is an operation to a terminal device, then close the screen saverand play the paused video file if there is an operation to a terminaldevice; or continue the screen saver if there is no operation to aterminal device; or when searching in the video search page, monitor thelight intensity before the screen; if the detected light intensity at amoment is lower than the predetermined minimum intensity threshold, thenstart the screen saver; determine whether there is an operation to theterminal device, then close the screen saver if there is an operation tothe terminal device; or continue the screen saver if there is nooperation to the terminal device.
 15. A non-transitory computer-readablestorage medium storing executable instructions that, when executed by anelectronic device, cause the electronic device to: acquire aninstruction of clicking on a video search page in the video application;monitor the light intensity before screen within a predetermined timeand calculate the brightness value of the video search page based on theaverage light intensity within the predetermined time; and set thebrightness value of the video search page based on the obtainedbrightness value and display the video search page.
 16. Thenon-transitory computer-readable storage medium according to claim 15,wherein after setting the brightness value of the video search page anddisplaying the video search page, the execution of the instructionsfurther causes the electronic device to: obtain a background color valueof the video search page and extract a text and image color value of thevideo search page; and determine whether the difference between the textand image color value and the background color value exceeds apredetermined similarity threshold, and according to the result of thedetermination, maintain the background color value unchanged or adjustthe background color value so that the text and image color value andthe background color value exceeds the predetermined similaritythreshold.
 17. The non-transitory computer-readable storage mediumaccording to claim 15, wherein after setting the brightness value of thevideo search page and displaying the video search page, the execution ofthe instructions further causes the electronic device to: acquire aninstruction of clicking on a video file in the video search page, andjump to a playback page of the video file; extract a brightness value ofthe playback area in the playback page of the video file; and set thebrightness value of the area other than the playback area in theplayback page of the video file and display the area other than theplayback area in the playback page of the video file, based on thebrightness value of the playback area.
 18. The non-transitorycomputer-readable storage medium according to claim 17, wherein theexecution of the instructions further causes the electronic device to:during the playback of the video file, monitor the brightness value ofthe playback area in the playback page of the video file within apredetermined time, and calculate the brightness value of the area otherthan the playback area in the playback page of the video file, based onthe average brightness value of the playback area within thepredetermined time; and set the brightness value of the area other thanthe playback area in the playback page of the video file and display thearea other than the playback area in the playback page of the videofile, based on the brightness value obtained by the calculation.
 19. Thenon-transitory computer-readable storage medium according to claim 18,wherein after setting the brightness value of the area other than theplayback area in the playback page of the video file and displaying thearea other than the playback area in the playback page of the videofile, the execution of the instructions further causes the electronicdevice to: obtain a background color value of the area other than theplayback area of the playback page of the video file, and extract a textand image color value of the area other than the playback area in theplayback page of the video file; determine whether the differencebetween the text and image color value and the background color valueexceeds the predetermined similarity threshold, and based on the resultof the determination, maintain the background color value unchanged oradjust the background color value so that the difference between thetext and image color value and the background color value exceeds thepredetermined similarity threshold.
 20. The non-transitorycomputer-readable storage medium according to claim 18, wherein theexecution of the instructions further causes the electronic device to:during the playback of the video file, monitor the light intensitybefore screen; if the detected light intensity at a moment is lower thanthe predetermined minimum intensity threshold, then pause thecurrent-playing video file and start a screen saver; determining whetherthere is an operation to a terminal device, then close the screen saverand play the paused video file if there is an operation to a terminaldevice; or continue the screen saver if there is no operation to aterminal device; or when searching in the video search page, monitor thelight intensity before the screen; if the detected light intensity at amoment is lower than the predetermined minimum intensity threshold, thenstart the screen saver; determine whether there is an operation to theterminal device, then close the screen saver if there is an operation tothe terminal device; or continue the screen saver if there is not anoperation to the terminal device.